﻿<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
  <FieldType>
    <Field Name="TypeName">gp_RegExpField</Field>
    <Field Name="ParentType">Text</Field>
    <Field Name="TypeDisplayName">GreenPoint - Text with RegExp validation</Field>
    <Field Name="TypeShortDescription">GreenPoint - Text with RegExp validation</Field>
    <Field Name="UserCreatable">TRUE</Field>
    <Field Name="FieldTypeClass">GreenPoint.CustomFields.RegExpField,GreenPoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0bde168d2d73e8b3</Field>
    <PropertySchema>
      <Fields>
        <Field Name="RegExp" DisplayName="Regular Expression Pattern" Type="Text" MaxLength="255" DisplaySize="35"></Field>
        <Field Name="ErrorMessage" DisplayName="Error Message" Type="Text" MaxLength="50" DisplaySize="35"></Field>
      </Fields>
    </PropertySchema>
  </FieldType>
  <FieldType>
    <Field Name="TypeName">gp_CoordinatesField</Field>
    <Field Name="ParentType">MultiColumn</Field>
    <Field Name="TypeDisplayName">GreenPoint - Coordinates with Virtual Earth Rendering</Field>
    <Field Name="TypeShortDescription">GreenPoint - Coordinates with Virtual Earth Rendering</Field>
    <Field Name="UserCreatable">TRUE</Field>
    <Field Name="FieldTypeClass">GreenPoint.CustomFields.CoordinatesField,GreenPoint, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0bde168d2d73e8b3</Field>
    <RenderPattern Name="DisplayPattern">
      <Switch>
        <Expr>
          <Column/>
        </Expr>
        <Case Value="">          
        </Case>
        <Default>
          <SetVar Name="veMapContainerDivId">
            <HTML>veMapContainerDiv_</HTML>
            <Column Name="ID" />
          </SetVar>
          <SetVar Name="veMapContainerTitleDivId">
            <HTML>veMapContainerTitleDiv_</HTML>
            <Column Name="ID" />
          </SetVar>
          <SetVar Name="veMapContainerCloseButtonDivId">
            <HTML>veMapContainerCloseButtonDiv_</HTML>
            <Column Name="ID" />
          </SetVar>
          <SetVar Name="veMapContainerMainDivId">
            <HTML>veMapContainerMainDiv_</HTML>
            <Column Name="ID" />
          </SetVar>
          <HTML><![CDATA[Lat: ]]></HTML>
          <Column SubColumnNumber="0" HTMLEncode="TRUE" />
          <HTML><![CDATA[ - Long: ]]></HTML>
          <Column SubColumnNumber="1" HTMLEncode="TRUE" />
          <HTML>
            <![CDATA[
          &nbsp;(<a href="" OnClick="javascript:
	      ]]>
          </HTML>
          <GetVar Name="veMapContainerDivId" />
          <HTML>
            <![CDATA[.style.display='inline';
            var map=new VEMap(']]>
          </HTML>
          <GetVar Name="veMapContainerMainDivId" />
          <HTML>
            <![CDATA[');
        map.LoadMap();
        map.SetCenterAndZoom(new VELatLong(]]>
          </HTML>
          <Column SubColumnNumber="0" HTMLEncode="TRUE" />
          <HTML><![CDATA[,]]></HTML>
          <Column SubColumnNumber="1" HTMLEncode="TRUE" />
          <HTML>
            <![CDATA[
            ),10);return false;">Show Map</a>)
      <div id="]]>
          </HTML>
          <GetVar Name="veMapContainerDivId"></GetVar>
          <HTML>
            <![CDATA[" style='background:#FFFFFF; width:400px; height:420px; position:relative;display:none'>
        <div id="]]>
          </HTML>
          <GetVar Name="veMapContainerTitleDivId"></GetVar>
          <HTML>
            <![CDATA[" style="background:#444444;height:14px;width:380px;border:1px;font-family:Tahoma;font-size:10px;color:white;font-weight:bold;float:left" align="center">
      Map Viewer
      </div>
        <div id="]]>
          </HTML>
          <GetVar Name="veMapContainerCloseButtonDivId"></GetVar>
          <HTML>
            <![CDATA[" " style="background:#444444;height:14px;width:20px;border:1px;font-family:Tahoma;font-size:10px;color:white;font-weight:bold;display:block;float:right" align="center">
      <a href="" onclick="document.getElementById(']]>
          </HTML>
          <GetVar Name="veMapContainerDivId"></GetVar>
          <HTML>
            <![CDATA[').style.display='none';return false;" style="text-decoration:none;color:white">X</a>
        </div>
        <div id="]]>
          </HTML>
          <GetVar Name="veMapContainerMainDivId" />
          <HTML>
            <![CDATA[" style="background:blue; width:400px; height:406px;">
          <script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.1"></script>
      </div>
        </div>
        ]]>
          </HTML>
        </Default>
      </Switch>
    </RenderPattern>
  </FieldType>
</FieldTypes>